import React from 'react'
import ReactCSSTransitionGroup from "react-addons-css-transition-group";
import "animate.css"
class Transition extends React.Component {
    constructor(props){
        super(props);
        this.state = {}
    }
    render(){
        return(
            <ReactCSSTransitionGroup
            transitionEnter={true}
            transitionLeave={true}
            transitionEnterTimeout={this.props.enterTimeout || 3000}
            transitionLeaveTimeout={this.props.leaveTimeout || 1500}
            transitionName="animated"
            >
                {this.props.children}
            </ReactCSSTransitionGroup>
        )
    }
}
export default Transition;
